﻿@model LetLord.ViewModels.EditLandlordDetailsViewModel
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">Edit your personal information</h3>
</div>
@using (Ajax.BeginForm("EditLandlordDetails", "Landlords", FormMethod.Post,
                       new AjaxOptions
                       {
                           InsertionMode = InsertionMode.Replace,
                           HttpMethod = "POST",
                           UpdateTargetId = "landlord-details"
                       }))
{
    @Html.ValidationSummary()
    @Html.AntiForgeryToken()
    <div class="modal-body">
        @Html.Bootstrap().ControlGroup().TextBoxFor(x => x.FirstName)
        @Html.Bootstrap().ControlGroup().TextBoxFor(x => x.LastName)
        @Html.Bootstrap().ControlGroup().TextBoxFor(x => x.Email)
    </div>
    <div class="modal-footer">
        <button class="btn btn-inverse" id="btn-edit-landlord-details" type="submit">Save</button>
    </div>
}
